package cn.edu.scujcc.customofsichuan.Entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "UserInfo")
public class User {

    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "head_image",typeAffinity = ColumnInfo.INTEGER)
    private Integer head_image;
    @ColumnInfo(name = "userName",typeAffinity = ColumnInfo.TEXT)
    private String userName;
    @ColumnInfo(name = "account",typeAffinity = ColumnInfo.TEXT)
    private String account;
    @ColumnInfo(name = "password",typeAffinity = ColumnInfo.TEXT)
    private String password;
    @ColumnInfo(name = "talk",typeAffinity = ColumnInfo.TEXT)
    private String talk;

    public User() {
    }

    @Ignore
    public User(int id, Integer head_image, String userName, String account, String password, String talk) {
        this.id = id;
        this.head_image = head_image;
        this.userName = userName;
        this.account = account;
        this.password = password;
        this.talk = talk;
    }

    @Ignore
    public User(Integer head_image, String userName, String account, String password, String talk) {
        this.head_image = head_image;
        this.userName = userName;
        this.account = account;
        this.password = password;
        this.talk = talk;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getHead_image() {
        return head_image;
    }

    public void setHead_image(Integer head_image) {
        this.head_image = head_image;
    }

    public String getTalk() {
        return talk;
    }

    public void setTalk(String talk) {
        this.talk = talk;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
